package utils.json.data.backbone;

import models.Focus;
import utils.json.data.AbstractJson;

public class FocusJson extends AbstractJson {
		
	public FocusJson(Focus focus) {
		put("id", focus.id);
		put("title", focus.title);
		put("description", focus.description);
		
		focus.owner.get();
		put("owner", new UserJson(focus.owner));
		
		put("countInfoRequest", focus.informationRequest.count());
	}
}
